//
//  ZRAccountManager.h
//  简书:https://www.jianshu.com/u/043e94ca450f
//
//  Created by 黄涛 on 2018/8/6.
//  Copyright © 2018年 zero. All rights reserved.
//  账号相关管理工具

#import <Foundation/Foundation.h>

@interface ZRAccountManager : NSObject

/** 初始化 */
+ (instancetype)sharedManager;

/** 账号密码登录 */
+ (void)loginWithAccount:(NSString *)account password:(NSString *)password  complete:(void(^)(BOOL isSuccess , NSInteger errorCode))complete;

/** 注销 */
+ (void)logout:(void(^)(BOOL isSuccess))complete;

/** 注册 */
+ (void)registerWithAccount:(NSString *)account password:(NSString *)password verificationCode:(NSString *)verificationCode otherParam:(NSDictionary *)otherParam complete:(void(^)(BOOL isSuccess))complete;

/** 验证码 */
+ (void)verificationCodeRequestWithPhoneNum:(NSString *)phoneNum complete:(void(^)(BOOL isSuccess , NSString * btnTitle))complete;


/** 重置密码 */
+ (void)resetPasswordWithAccount:(NSString *)account password:(NSString *)password verificationCode:(NSString *)verificationCode complete:(void(^)(BOOL isSuccess))complete;

/** 获取个人信息 */
+ (void)getUserInfo:(void(^)(BOOL isSuccess , id responseObj))complet;

/** 修改个人信息 */
+ (void)changeUserInfo:(NSDictionary *)userInfo complete:(void(^)(BOOL isSuccess))complete;

/** 上传头像 */
+ (void)uploadIcon:(UIImage *)icon complete:(void(^)(BOOL isSuccess , id responseObj))complete;


@end
